package musicbrainz;

import org.w3c.dom.Node;

public class RecordingMB {

	public String mbid;
	public String title;
	public int length;
	
	public RecordingMB(Node n){
		mbid = n.getAttributes().getNamedItem("id").getNodeValue();
		n = n.getFirstChild();
		title = n.getFirstChild().getNodeValue();
		n = n.getNextSibling();
		length = Integer.parseInt(n.getFirstChild().getNodeValue());
	}
}
